<?php

class test
{
      static public function debug($var, $val)
      {
          echo "variable: $var <br> value: $val <br>";
          echo "<hr>";
      }
}

$host = $_SERVER["SERVER_NAME"];
$file = $_SERVER["PHP_SELF"];

call_user_func_array(array('test', 'debug'), array("host", $host));
call_user_func_array(array('test', 'debug'), array("file", $file));

?>